#!/bin/bash

# Written by Yuval Oren for Attributor. Contributed to the public domain in April, 2010. 
# This script starts FitNesse with Subversion integration. Uncomment and set the login variables below, or set them in your .profile, .cshrc, etc.

#SVN_USER=your_user
#SVN_PASSWORD=your_password




CURDIR=`dirname $0`
LIBDIR=$CURDIR/cmsvn
CLASSPATH=$CURDIR


for jar in $CURDIR/*.jar $LIBDIR/*
do
   CLASSPATH=${CLASSPATH}:${jar}
done

set -e

java -cp "$CLASSPATH" "-DCM_SYSTEM=com.attributor.fitnesse.SubversionCmSystem $SVN_USER/$SVN_PASSWORD" fitnesseMain.FitNesseMain $*

